package com.binvshe.binvshe.activity;

/**
 * Created by Zoi.
 * E-mail：KyluZoi@gmail.com
 * 2017/2/8
 */

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.bigkoo.convenientbanner.holder.Holder;
import com.bigkoo.convenientbanner.listener.OnItemClickListener;
import com.binvshe.binvshe.common.image.IML;

import butterknife.OnItemClick;

/**
 * 指示器holder
 */
public class LocalImageHolderView implements Holder<BannerEntity> {
    private ImageView imageView;

    @Override
    public View createView(Context context) {
        imageView = new ImageView(context);
        imageView.setScaleType(ImageView.ScaleType.FIT_XY);
        return imageView;
    }

    @Override
    public void UpdateUI(Context context, final int position, BannerEntity data) {
        IML.load(context, imageView, data.getImage());
        // TODO: 2017/2/4 link点击事件处理
    }

}
